import request from '@/utils/request'

// 查询告警规则管理
export function pageArea(query) {
  return request({
    url: '/area/page',
    method: 'get',
    params: query
  })
}
// 查询告警规则管理
export function refreshArea(query) {
  return request({
    url: '/area/refresh',
    method: 'get',
    params: query
  })
}
// 树
export function treeArea(query) {
  return request({
    url: '/area/tree',
    method: 'get',
    params: query
  })
}

export function updateUsed(id) {
  return request({
    url: '/area/updateUsed/'+id,
    method: 'get',
  })
}